package day9;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author joker
 * @date 2022/4/19 0019 - 18:14
 */
public class PropTest {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("he.properties");
        properties.load(fileInputStream);
        System.out.println(properties.getProperty("name"));
        System.out.println(properties.getProperty("age"));

    }
}
